package com.fhz.loginmvvm

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 时间:2023/3/24
 * @author Mr.Feng
 * 简述: TODO
 */
data class User(
    val `data`: Data,
    val errorCode: Int,
    val errorMsg: String
)

/**
 * 数据库中要存的对象.
 */
@Entity(tableName = "user")
data class Data(
    @PrimaryKey(autoGenerate = true)
    val uid:Int?,
    val address: String?,
    val admin: Boolean?,
    val birth: String?,
    val chapterTops: String?,
    val coinCount: Int?,
    val collectIds: Int?,
    val email: String?,
    val icon: String?,
    val id: Int?,
    val nickname: String?,
    val password: String?,
    val publicName: String?,
    val sex: Int?,
    val token: String?,
    val type: Int?,
    val username: String?
)